package com.nicolas.sqlitedemo;

import java.util.List;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;

public class MainActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		RecordUtils.getInstance(SqliteApplication.getContext())
				.writeTextStorage("nicolas");

		List<String> list = RecordUtils.getInstance(
				SqliteApplication.getContext()).getAllNames();
		for (String name : list) {
			System.err.println(name);
		}

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}

}
